package com.example.util;

import android.R;
import android.location.Location;
import android.media.MediaPlayer;

public class Constant {
	public static final String ADD_PRE="jsnj/"; 	 //"/sdcard/jsnj/";
	public static final int WAIT_DIALOG_REPAINT=0;//缁涘绶熺�电鐦藉鍡楀煕閺傜増绉烽幁顖滅椽閿燂拷?	public static final int WAIT_DIALOG=0;//缁涘绶熺�电鐦藉鍡欑椽閿燂拷?
	public static final int INFO_MYSQL=1;           //缂傛牕褰�
	public static final int INFO_NEARBYSTATIO=2;
	public static  String[] ListArray;
	public static  String List;//閺傚洣娆㈤崘鍛啇
	public static int TEXT_SIZE=16;//閺傚洤鐡ч惃鍕亣
    public static String snzy="zhongn";
	public static int COLOR=R.color.black;//鐎涙ぞ缍嬫０婊嗗
	public static final int PHOTOHRAPH = 1;// 閹峰秶鍙庨敍宀冪殶閻€劎閮寸紒鐔哄弾閻╁憡婧�閺冩湹濞囬敓锟�?
	public static Location myLocation;//濞撶顓硅ぐ鎾冲閻ㄥ嫮绮＄痪顒�瀹虫担宥囩枂
	public static final int SHOWMOREDIALOG=1;//閺勫墽銇氶弴鏉戭樋鐎电鐦介敓锟�?
	public static final int EXIT_DIALOG=2;//鐠囥垽妫堕弰顖氭儊閿燂拷?閿熸枻鎷风�电鐦介敓锟�?
	public static String curSMP=null;//鐠佹澘缍嶈ぐ鎾冲濮濓絽婀幘顓熷Г閻ㄥ嫭娅欓悙鐟版倳
	public static MediaPlayer mp;//閺咁垳鍋ｆ禒瀣矝娴ｈ法鏁ら惃鍕尡閺�鎯ф珤
	public static int isPlay=0;//0娴狅綀銆冭ぐ鎾冲閺冪姵娅欓悙閫涚矙缂佸稄绱�1 娴狅綀銆冨锝呮躬閹绢厽鏂侀敓锟�? 娴狅綀銆冮弳鍌氫粻
	public static String curScenicId=null;//鐠佹澘缍嶈ぐ鎾冲閺勫墽銇氶弲顖滃仯閻ㄥ嫮绱敓锟�?
	public static final int DISTANCE_SCENIC=200;//閺咁垳鍋ｉ懠鍐ㄦ纯閻ㄥ嫰妲囬敓锟�?
	public static final double EARTH_RADIUS = 6378137.0; //閸︽壆鎮嗛崡濠傜窞
	public static final int DISTANCE_USER=100;//閻€劍鍩涚粔璇插З閼煎啫娲块惃鍕閿燂拷?
	public static final int[] TEXT_SIZES={12,18,24,30,36};
	public static final String CONSUMER_KEY ="3137261270";// 闁哄洦瀵у畷鍙夌▔閸濆嫮纾婚柛娆愬灱閿熶粙鎯冮崚鐒key闁挎稑濂旂欢銉︿繆閿燂拷?646212960";
	public static final String CONSUMER_SECRET ="d97ff3893abb20f96231fcb7f5d35b43";
	
	public static final int FROMALBUM=0;//娴犲孩澧滈張鍝勬禈閻楀洤绨辨稉顓″箯閸欐牜鍙庨悧鍥╂畱閺嶅洤绻�
	public static final int FROMCAMERA=1;//娴ｈ法鏁ら悡褏娴夐張鐑樺閻撗呮畱閺嶅洤绻�
	//閹兼粎鍌ㄩ崨銊ㄧ珶閸忕鍙悙鍦畱閼煎啫娲�,閺勫墽銇氶弮鏈典簰閸忣剟鍣锋稉鍝勫礋閿燂拷?
	public static final int RANGE_UNION=1000;//鐠侊紕鐣婚弰顖欑娴犮儲鏆熺紒鍕厬閻ㄥ嫭鏆熼幑銏㈢暬閹存劗鑳�
	public static final int[] RANGE_ITEMS={1,2,5,10};
	//闁俺绻冩稉銈囧仯缂佸繒鍚惔锕侇吀缁犳绐涚粋鑽ゆ畱閺傝纭堕敍宀冪箲閸ョ偛宕熸担宥勮礋閿涙氨鑳�
		public static double jWD2M(double lat_a, double lng_a, double lat_b, double lng_b){
			double radLat1 = (lat_a*Math.PI/180.0); 
			double radLat2 = (lat_b*Math.PI/180.0); 
			double a = radLat1-radLat2; 
			double b = (lng_a- lng_b)* Math.PI/180.0; 
			double s = 2*Math.asin(Math.sqrt(Math.pow(Math.sin(a/2),2) 
	          + Math.cos(radLat1)*Math.cos(radLat2)
	          * Math.pow(Math.sin(b/2),2)));
			s = s*EARTH_RADIUS; 
			s = Math.round(s*10000)/10000;
			return s; 
		}
}
